import aioredis
from aioredis import Redis

from settings import get_settings

settings = get_settings()


async def get_redis_pool() -> Redis:
    redis = await aioredis.from_url(settings.REDIS, decode_responses=True)
    return redis
